Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose grammar sampling option #32

Merged
merged 1 commit into from
Feb 13, 2025
Merged

Expose grammar sampling option #32

merged 1 commit into from
Feb 13, 2025

Conversation

pminev
Copy link
Contributor

@pminev pminev commented Jan 20, 2025

Example for grammars we can see in llama.cpp repository here.

I didn't add an example since the model we use 117M doesn't respond that good and it just makes the usage even harder. That's why I've added some tests to see that the grammars are taken into account.

closes #8

@pminev pminev added the enhancement New feature or request label Jan 20, 2025
@pminev pminev requested a review from iboB January 20, 2025 16:30
@pminev pminev merged commit 517c35f into master Feb 13, 2025
@pminev pminev deleted the pminev/grammar branch February 13, 2025 09:17
@pminev pminev restored the pminev/grammar branch February 13, 2025 09:53
@pminev pminev deleted the pminev/grammar branch February 13, 2025 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

llama: add grammar-based sampling
2 participants